import re

html = '''
<div><p>九霄龙吟惊天变</p></div>
<div><p>风云际会潜水游</p></div>
'''
# 贪婪匹配
# p = re.compile('<div><p>.*</p></div>', re.S) # ['<div><p>九霄龙吟惊天变</p></div>\n<div><p>风云际会潜水游</p></div>']
p = re.compile('<div><p>(.*)</p></div>', re.S) # ['九霄龙吟惊天变</p></div>\n<div><p>风云际会潜水游']
r_list = p.findall(html)
print(r_list)

# 非贪婪匹配
# p = re.compile('<div><p>.*?</p></div>', re.S) # ['<div><p>九霄龙吟惊天变</p></div>', '<div><p>风云际会潜水游</p></div>']
p = re.compile('<div><p>(.*?)</p></div>', re.S) # ['九霄龙吟惊天变', '风云际会潜水游']
r_list = p.findall(html)
print(r_list)
